package com.citcc.business.mapper;

import com.citcc.business.bean.CdzWarn;
import com.citcc.business.bean.WarnExport;
import com.citcc.business.bean.vo.StatisticsWarnVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CdzWarnMapper {
    int deleteByPrimaryKey(String id);

    int insert(CdzWarn record);

    int insertSelective(CdzWarn record);

    CdzWarn selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CdzWarn record);

    int updateByPrimaryKey(CdzWarn record);

    /**
     * 查询所有告警列表
     */
    List<WarnExport> selectAllList(CdzWarn cdzWarn);

    /**
     * 根据站号统计告警次数
     * @param beginTime
     * @param endTime
     * @return
     */
    List<StatisticsWarnVo> getNumList(@Param("beginTime") String beginTime, @Param("endTime") String endTime);

    /**
     * 根据站号查询明细列表
     * @param cdzWarn
     * @return
     */
    List<WarnExport> getDetail(CdzWarn cdzWarn);
    
    List<CdzWarn> selectCdzWarn(CdzWarn cdzWarn);
}